﻿<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>用户</title>
    <link href="../../resource/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../resource/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../../scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../../../scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../scripts/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../../../scripts/json2.js" type="text/javascript"></script>
    <style type="text/css">
        body {
            padding: 0px;
            margin: 0px;
        }
    </style>
    
    <script type="text/javascript">
        $(document).ready(function () {
        	initRightGrid();
			initLeftTree();
			loadleftTree();
        });
    </script>
</head>
<body>
    <div class="easyui-layout" style="width: 100%; height: 100%;">
        <div region="west" split="true" border="false" title="部门" style="width: 220px; overflow: auto; padding-top: 0px;">
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; font-size: 12px;">
                <tr>
                    <td style="vertical-align: top; height: 28px; background: #efefef;">
                        <div id="TreeButtonsPanel" style="padding: 1px; width: 100%;">
                            <a id="addLeft" href="javascript:void(0)" onclick="saveDepartmentRecord('add'); return false;" class="easyui-linkbutton" plain="true" iconcls="icon-addfavorites">新增</a>
                            <a id="updateLeft" href="javascript:void(0)" onclick="saveDepartmentRecord('update'); return false;" class="easyui-linkbutton" plain="true" iconcls="icon-updatefavorites" disabled="true">修改</a>
                            <a id="deleteLeft" href="javascript:void(0)" onclick="deleteLeftRecord(); return false;" class="easyui-linkbutton" plain="true" iconcls="icon-deletefavorites" disabled="true">删除</a>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td style="vertical-align: top;">
                        <ul id="catalogueTree">
                        </ul>
                    </td>
                </tr>
            </table>
        </div>
        <div region="center" border="false" style="overflow: hidden;">
            <div class="easyui-layout" style="width: 100%; height: 100%;" fit="true">
                <div region="north" border="false" split="false" style="height: 32px; overflow: auto; padding-top: 0px; background-color: #e9f1fe;">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; height: 100%; font-size: 12px; border-bottom: 1px solid #99bbe8;">
                        <tr>
                            <td>
                                <div id="GridButtonsPanel" style="padding: 2px 5px 2px 5px;float:right">
                                    <a id="addRight"  href="javascript:void(0)" class="easyui-linkbutton" plain="true" onclick="tabUpdate('add');return false;" iconcls="icon-addfile" style="float: left" disabled="true">新增用户</a>
                                    <a id="updateRight"  href="javascript:void(0)" class="easyui-linkbutton" plain="true" onclick="tabUpdate('update');return false;" iconcls="icon-updatefile" style="float: left" disabled="true">修改用户</a>
                                    <a id="deleteRight"  href="javascript:void(0)" class="easyui-linkbutton" plain="true" onclick="deleteRightRecord();return false;" iconcls="icon-deletefile" style="float: left" disabled="true">删除用户</a>
                                    <a id="resetPassword"  href="javascript:void(0)" class="easyui-linkbutton" plain="true" onclick="resetPassword();return false;" iconcls="icon-rename" style="float: left" disabled="true">密码重置</a>
                                </div>
                            </td>
                        </tr>
                    </table>
                </div>
                <div region="center" border="false" style="overflow: hidden;">
                    <table id="dataGrid" border="false">
                    </table>
                </div>
            </div>
        </div>
    </div>
    <div id="mm" class="easyui-menu" style="width:120px;">  
        <div  iconcls="icon-flag" onclick="setMainDepartment();return false;">设置主部门</div>  
        <div  iconcls="icon-undo" onclick="cancelMain();return false;">取消设置</div>  
    </div>     
</body>
</html>
